﻿using System.ComponentModel.Composition;
using System.Windows;
using MediaAssistant.Data;
using MefBasic;

namespace MediaAssistant.Controls.MusicMiddlePanel
{
    [Export(typeof(MusicMiddlePanelPresenter))]
    public class MusicMiddlePanelPresenter:APresenter<IMusicMiddlePanelView>
    {
        [ImportingConstructor]
        public MusicMiddlePanelPresenter(IMusicMiddlePanelView view) : base(view)
        {
        }

        [Import]
        public LibraryDataSource DataSource
        {
            get { return (LibraryDataSource)GetValue(DataSourceProperty); }
            set { SetValue(DataSourceProperty, value); }
        }

        public static readonly DependencyProperty DataSourceProperty =
            DependencyProperty.Register("DataSource", typeof(LibraryDataSource), typeof(MusicMiddlePanelPresenter), new UIPropertyMetadata(null));

        
    }
}
